import * as types from '../../mutation-types/brandadmin/index';

const state = {

   getBrandCateory:[],
    brandList: [],
    currentPage: 1,
    total: 0,
    deleteResult: {},
    detail: {},
    contact: {},
    followList: [],
    provinceList: [],
    cityList: [],
    districtList: [],
    sellerList: [],
    customerDetailList: [],
    customerDetailData: {},
    industryList: [],
    ownerIds: [],
    ownerNames: [],
    pageTabsList: [],
    deleteBrand:{},
    updateBrandStatus:{},
    addBrandAudit:{},
    getBrandAudit:{},
    distributePerson:{},
};
const mutations = {
    [types.GETBRANDCATEORY] (state, {getBrandCateory}) {
        state.getBrandCateory = getBrandCateory;
    },
    [types.OWNER_IDS] (state, {ownerIds}) {
        state.ownerIds = ownerIds;
    },
    [types.OWNER_NAMES] (state, {ownerNames}) {
        state.ownerNames = ownerNames;
    },
    [types.BRANDLIST] (state, {brandList}) {
        state.brandList = brandList;
    },
    [types.CUSTOMERLIST_CURRENTPAGE] (state, {currentPage}) {
        state.currentPage = currentPage;
    },
    [types.CUSTOMERLIST_TOTAL] (state, {total}) {
        state.total = total;
    },
    [types.BRABDLIST_DELETE] (state, {deleteBrand}) {
        state.deleteBrand = deleteBrand;
    },
    [types.DISTRIBUTE_PERSON] (state, {deleteBrand}) {
        state.distributePerson = distributePerson;
    },
    [types.UPDATEBRAND_STATUS] (state, {deleteBrand}) {
        state.updateBrandStatus = updateBrandStatus;
    },
    [types.ADDBRAND_AUDIT] (state, {deleteBrand}) {
        state.addBrandAudit = addBrandAudit;
    },
    [types.GETBRAND_AUDIT] (state, {deleteBrand}) {
        state.getBrandAudit = getBrandAudit;
    },
    [types.CUSTOMER_DETAIL] (state, {detail}) {
        state.detail = detail;
    },
    [types.CUSTOMER_CONTACT] (state, {contact}) {
        state.contact = contact;
    },
    [types.CUSTOMER_FOLLOW_LIST] (state, {followList}) {
        state.followList = followList;
    },
    [types.PROVINCE_LIST] (state, {provinceList}) {
        state.provinceList = provinceList;
    },
    [types.CITY_LIST] (state, {cityList}) {
        state.cityList = cityList;
    },
    [types.DISTRICT_LIST] (state, {districtList}) {
        state.districtList = districtList;
    },
    [types.SELLER_LIST] (state, {sellerList}) {
        state.sellerList = sellerList;
    },
    [types.CHANGECUSTOMERDETAIL] (state,{data}) {
        state.customerDetailList = data
    },
    [types.INDUSTRY_LIST] (state,{industryList}) {
        state.industryList = industryList
    },
    [types.PAGETABSLIST] (state,{data}) {
        state.pageTabsList = data
    }
};

export default {
  state,
  mutations
};